from manimlib import *
from numpy import square
import numpy as np

class SquareToCircle(Scene):
    #75cfb8
    #浅绿
    #bbdfc8
    #浅黄
    #f0e5d8
    #深黄
    #ffc478
    def construct(self):
        self.camera.background_color = WHITE
        square = Square(color='#75cfb8',side_length=6)


        c=Circle(radius=2,color='#ffc478').shift(UR*1.9)
        c.set_fill('#ffc478')
        l=Line(c.get_center(),[3,3,0],color=BLACK)
        self.add(Tex('d',color=BLACK).next_to(l,UL,buff=-0.5))
        r=Line(c.get_center(),c.get_left(),color=BLACK)
        self.add(Tex('r',color=BLACK).next_to(r,DOWN))
        self.add(c,square,l,r)
        self.wait(0.03)
